package com.shanjupay.merchant.convert;

import com.shanjupay.merchant.api.dto.AppDTO;
import com.shanjupay.merchant.entity.App;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * <h1>app对象类型转换器</h1>
 * @author lsu
 * @date 2020/05/11
 */
@Mapper
public interface AppConvert {

    AppConvert INSTANCE = Mappers.getMapper(AppConvert.class);

    // entity 2 dto
    AppDTO entity2dto(App entity);

    // dto 2 entity
    App dto2entity(AppDTO dto);

    List<AppDTO> listentity2dto(List<App> app);
}
